<script setup lang="ts"></script>

<template>
  <div id="app">
    <router-view ></router-view>
  </div>
</template>
<script setup lang="ts">
import { ref, onMounted } from 'vue'
import { PiniaStore } from './store'
const store = PiniaStore()
const bodyScale = () => {
  var devicewidth = document.documentElement.clientWidth;//获取当前分辨率下的可是区域宽度
  var deviceHeight = document.documentElement.clientHeight;//获取当前分辨率下的可是区域宽度
  var scaleW: any = devicewidth / 1920; // 分母——设计稿的尺寸
  document.body.style.zoom = scaleW//放大缩小相应倍数
  store.setZoom(scaleW)
}
// 获取菜单列表
onMounted(() => {
  bodyScale()
  window.addEventListener("resize", () => {
    bodyScale()
  });
  // // 获取登陆者后台菜单栏
  // useMean.loginLeftMenuList()
})
</script>
<style scoped lang="scss">
#app {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
}
</style>
